for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
module.exports = function (shipit) {
require('shipit-deploy')(shipit);
require('shipit-submodule')(shipit);
shipit.initConfig({
default: {
workspace: '/tmp/flask-api-starter-kit',
repositoryUrl: '[email protected]:antkahn/flask-api-starter-kit.git',
serviceName: 'application',
hasDatabase: true,
ignores: ['.git', 'node_modules'],
shallowClone: true,
submodules: true,
keepReleases: 3
},
prod: {
servers: [{
host: 'my-first-host.com',
user: 'api'
}, {
}],
branch: 'prod',
deployTo: '/my/path/on/server/flask-api-starter-kit',
}
});
shipit.on('published', function() {
return shipit.start('install');
if(shipit.environment.indexOf(['prod'])) {
require('./devops/deploy/prod.js')(shipit);
} else {
console.log("Unknwown environment: " + shipit.environment);
console.log
exit(1);
};